MODULE t1;
VAR y, y1 : SHORTINT;
TYPE x = INTEGER;
VAR x : x;
END t1.

(*
java.lang.ClassCastException: ru.msu.cmc.sp.oberon2.Symbol cannot be cast to ru.msu.cmc.sp.oberon2.Type
	at ru.msu.cmc.sp.oberon2.Inter_scope.typeElement(Inter_scope.java:1491)
	at ru.msu.cmc.sp.oberon2.Inter_scope.type(Inter_scope.java:1410)
	at ru.msu.cmc.sp.oberon2.Inter_scope.varDeclaration(Inter_scope.java:1012)
	at ru.msu.cmc.sp.oberon2.Inter_scope.topdown(Inter_scope.java:285)
	at ru.msu.cmc.sp.oberon2.Inter_scope.topdown(Inter_scope.java:1)
	at org.antlr.runtime.tree.TreeRewriter$2.rule(TreeRewriter.java:108)
	at org.antlr.runtime.tree.TreeRewriter.applyOnce(TreeRewriter.java:61)
	at org.antlr.runtime.tree.TreeRewriter$1.pre(TreeRewriter.java:92)
	at org.antlr.runtime.tree.TreeVisitor.visit(TreeVisitor.java:56)
	at org.antlr.runtime.tree.TreeVisitor.visit(TreeVisitor.java:60)
	at org.antlr.runtime.tree.TreeRewriter.downup(TreeRewriter.java:95)
	at org.antlr.runtime.tree.TreeRewriter.downup(TreeRewriter.java:86)
	at ru.msu.cmc.sp.oberon2.Oberon2.analysis(Oberon2.java:25)
	at ru.msu.cmc.sp.oberon2.Oberon2.main(Oberon2.java:47)
*)